# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
#
# This PKGBUILD was extracted from AUR.
# Creator: tuftedocelot tuftedocelot@fastmail.fm<
# Changes by: petruknisme

_pkgname=neo4j-python-driver
pkgname=python-neo4j-driver
pkgver=4.4.12
_pyver=3.13
pkgrel=4
pkgdesc='Neo4j Bolt driver for Python'
arch=('any')
url='https://github.com/neo4j/neo4j-python-driver'
license=('Apache')
depends=('python' 'python-pytz')
makedepends=('python-setuptools')
source=("https://github.com/neo4j/$_pkgname/archive/$pkgver.zip")
sha512sums=('f6ebe4026962d795ba1502639d0705ec7a22065cfab368f44ba9ab3fc0975a81c1d0eef59be3c7696bf67edd0753458e4ca6f9de2a81ad8675ab3c3d83f67928')

build(){
  cd $_pkgname-$pkgver

  python setup.py build
}

package() {
  cd $_pkgname-$pkgver

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build

  rm -rf "$pkgdir/usr/lib/python$_pyver/site-packages/tests"
}

